<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <title>通用开发管理系统</title>
    <link type="text/css" href="__STATIC__/zui/css/zui.min.css" rel="stylesheet"/>
    <link type="text/css" href="__STATIC__/admin/theme/{$_theme_style|default='default'}.css" rel="stylesheet" />
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <!-- 数据列表 -->
        <table class="table table-striped">
            <thead>
            <tr>
                <th class="">#</th>
                <th class="">用户工号</th>
                <th class="">用户姓名</th>
                <th class="">所在机构</th>
                <th class="">最后登录时间</th>
                <th class="">状态</th>
                <th class="">操作</th>
            </tr>
            </thead>
            <tbody>
            {notempty name="user_list"} {volist name="user_list" id="user"}
            <tr>
                <td>{$i}</td>
                <td>{$user.name}</td>
                <td>{$user.title}</td>
                <td>{$user.office_title}</td>
                <td><span>{$user.last_login_time|date='Y-m-d H:i'}</span></td>
                <td>{$user.status|get_status_html|raw}</td>
                <td><a href="{:url('user', array('o'=>'d', 'u'=>$user['id'],'g'=>$info['id']))}"
                       class="ajax-get">解除授权</a></td>
            </tr>
            {/volist} {else/}
            <tr>
                <td class="text-center" colspan="7">aOh! 暂时还没有内容!</td>
            </tr>
            {/notempty}
            </tbody>
            <tfoot>
            <tr>
                <td colspan="7">

                    <div class="col-xs-7" style="padding-left: 0; padding-right: 0; padding-top: 5px;">{$pager||raw}</div>
                    <div class="col-xs-5" style="padding-left: 0; padding-right: 0;">
                        <form action="{:url('user', array('o'=>'a'))}" class="form-horizontal" method="post">
                            <div class="input-group">
                                <input type="hidden" name="group_id" value="{$info['id']}"/>
                                <input type="text" class="form-control" name="user_id"
                                       placeholder="请输入用户账号"/>
                                <span class="input-group-btn"/>
                                <button type="submit" class="btn btn-primary ajax-post" data-href="form-horizontal">
                                    <i class="icon icon-plus"></i> 新增
                                </button>
                            </div>
                        </form>
                    </div>

                </td>
            </tr>
            </tfoot>
        </table>
    </div>
</div>
<script type="text/javascript" src="__STATIC__/zui/lib/jquery/jquery.js"></script>
<script type="text/javascript" src="__STATIC__/zui/js/zui.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/app.js"></script>
</body>
</html>

